$OpenBSD: patch-ext_libclementine-common_CMakeLists_txt,v 1.4 2013/12/12 11:13:39 zhuk Exp $
--- ext/libclementine-common/CMakeLists.txt.orig	Sun Oct 20 05:37:02 2013
+++ ext/libclementine-common/CMakeLists.txt	Sun Oct 20 05:38:11 2013
@@ -33,3 +33,11 @@ target_link_libraries(libclementine-common
   ${TAGLIB_LIBRARIES}
   ${CMAKE_THREAD_LIBS_INIT}
 )
+
+find_package(Backtrace)
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in
+               ${CMAKE_CURRENT_BINARY_DIR}/config.h)
+if(Backtrace_FOUND)
+  include_directories(${Backtrace_INCLUDE_DIRS})
+  target_link_libraries(libclementine-common ${Backtrace_LIBRARIES})
+endif(Backtrace_FOUND)
